package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 论坛回复
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_BBS_MSG")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="论坛回复",description="论坛回复")
public class BbsMsg implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/**  */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "")
	private Long id;
	
	/** 论坛id */
	@Column(name = "bbs_id" )
	@ApiModelProperty(value = "论坛id")
	private Long bbsId;
	
	/** 被回复人id */
	@Column(name = "commented_user_id" )
	@ApiModelProperty(value = "被回复人id")
	private Long commentedUserId;
	
	/** 评论人姓名 */
	@Column(name = "comment_user_name" )
	@ApiModelProperty(value = "评论人姓名")
	private String commentUserName;
	
	/** 被回复人姓名 */
	@Column(name = "commented_user_name" )
	@ApiModelProperty(value = "被回复人姓名")
	private String commentedUserName;

	/** 回复内容 */
	@Column(name = "comment")
	@ApiModelProperty(value = "回复内容")
	private String comment;
	
	/**  */
	@Column(name = "create_time", updatable = false , insertable = false)
	@ApiModelProperty(value = "")
	private java.util.Date createTime;
	
	/**  */
	@Column(name = "update_time", updatable = false , insertable = false)
	@ApiModelProperty(value = "")
	private java.util.Date updateTime;
	
	/** 评论人id */
	@Column(name = "comment_user_id" , insertable = false)
	@ApiModelProperty(value = "评论人id")
	private Long commentUserId;
	
}
